import { AxiosRequestConfig } from "axios";
import { Request } from "./base";
import { ContentTypeEnum } from "./request.d.ts";

export const cafReq = (headerType: number, config?: AxiosRequestConfig) => {
  return new Request(
    Object.assign({ "Content-Type": ContentTypeEnum[headerType] }, config)
  );
};
